import request from '@/utils/request';

export async function getProjectPhaseByPage (params: any) {
    return request('/api/design/getProjectPhaseByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addProjectPhase (params: any) {
    return request('/api/design/addProjectPhase', {
    method: 'POST',
    data: params,
  });
}

export async function updateProjectPhase (params: any) {
    return request('/api/design/updateProjectPhase', {
    method: 'POST',
    data: params,
  });
}

export async function delProjectPhase (params: any) {
    return request('/api/design/delProjectPhase', {
    method: 'POST',
    data: params,
  });
}


export async function exportProjectPhase(params: any) {
    return request('/api/design/exportProjectPhase', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getProjectPhaseByPage, addProjectPhase, updateProjectPhase, delProjectPhase, exportProjectPhase }
